//
//  HomeTransforShowOrderInfoSecondTwoTableViewCell.m
//  ZJControlsClass
//
//  Created by mac on 2024/12/8.
//

#import "HomeTransforShowOrderInfoSecondTwoTableViewCell.h"

@interface HomeTransforShowOrderInfoSecondTwoTableViewCell()

@property (nonatomic, strong) UILabel *firstLabel;
@property (nonatomic, strong) UILabel *secondLabel;
@property (nonatomic, strong) UILabel *thirdLabel;
@property (nonatomic, strong) UIView * V;



@end


@implementation HomeTransforShowOrderInfoSecondTwoTableViewCell



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.firstLabel = [UILabel new];
        self.firstLabel.textColor = [UIColor blackColor];
        self.firstLabel.font = FONT12;
        self.firstLabel.textAlignment = NSTextAlignmentCenter;
        self.firstLabel.text = @"锤子";
        [self.contentView addSubview:self.firstLabel];
        [self.firstLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView);
            make.width.equalTo(@(SCREEN_WIDTH / 3));
            make.centerY.equalTo(self.contentView.mas_centerY);
        }];
        
        self.secondLabel = [UILabel new];
        self.secondLabel.textColor = [UIColor blackColor];
        self.secondLabel.font = FONT12;
        self.secondLabel.textAlignment = NSTextAlignmentCenter;
        self.secondLabel.text = @"100cm*10cm";
        [self.contentView addSubview:self.secondLabel];
        [self.secondLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.firstLabel.mas_right);
            make.width.equalTo(@(SCREEN_WIDTH / 3));
            make.centerY.equalTo(self.contentView.mas_centerY);
        }];
        
        self.thirdLabel = [UILabel new];
        self.thirdLabel.textColor = [UIColor blackColor];
        self.thirdLabel.font = FONT12;
        self.thirdLabel.textAlignment = NSTextAlignmentCenter;
        self.thirdLabel.text = @"1";
        [self.contentView addSubview:self.thirdLabel];
        [self.thirdLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.secondLabel.mas_right);
            make.width.equalTo(@(SCREEN_WIDTH / 3));
            make.centerY.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.V = [UIView new];
        self.V.backgroundColor = COLOR_RGB(244, 244, 244);
        [self.contentView addSubview:self.V];
        
        [self.V mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.firstLabel).with.offset(ALIGN_WIDTH_PT(12));
            make.right.equalTo(self.thirdLabel.mas_right);
            make.bottom.equalTo(self.contentView).with.offset(-1);
            make.height.equalTo(@(1));
        }];
        
        
        
        
    }
    return self;
}


-(void)setModel:(HomeTransforOrderInfoAreaListModel *)model{
    _model = model;
    self.firstLabel.text = model.goodsName;
    self.secondLabel.text = model.goodsSpec;
    self.thirdLabel.text = model.goodsNum;
    
}


-(void)setGoodModel:(ZJMineThroughRecordInfogoodsVOListModel *)goodModel{
    
    self.firstLabel.text = goodModel.goodsName;
    self.secondLabel.text = goodModel.goodsSpec;
    self.thirdLabel.text = goodModel.goodsNum;
    
}




@end
